// ActionScript file
package actionScript { 
    import flash.events.Event;   
    import mx.containers.Canvas;
    import mx.controls.CheckBox;
    import mx.controls.listClasses.IListItemRenderer;
    import mx.events.DataGridEvent;
	
	public class CheckBoxHeaderRenderer extends Canvas implements IListItemRenderer{
		private var selector:CheckBox;
		override public function set data(value:Object):void{
			
		}
		override public function get data():Object {
			return null;
		}
		override protected function createChildren():void{
			super.createChildren();
			this.selector = new CheckBox();
			this.selector.x = 5;
			this.addChild(this.selector);
		}
		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
			super.updateDisplayList(unscaledWidth,unscaledHeight);
			this.selector.setActualSize(this.selector.getExplicitOrMeasuredWidth(),this.selector.getExplicitOrMeasuredHeight());
		}
	}
     
}  
